package service.jsoft.com;

import java.util.Collections;
import javax.cache.Cache;
import javax.cache.CacheException;
import javax.cache.CacheManager;
import javax.faces.bean.ApplicationScoped;

@ApplicationScoped
public class CacheProducer {
   Cache getCache() throws CacheException {
      return CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
   }
}
